import request from '@/util/request.js';

/**
 * @description 商家查询核销记录
 * @param {Object} data
 */
export function getVerificationRecordList(data) {
	return request({
		url: '/verificationRecord/getVerificationRecordList',
		method: 'GET',
		data
	})
}
/**
 * @description 商家核销
 * @param {Object} data
 */
export function businessVerification(data) {
	return request({
		url: '/verificationRecord/businessVerification',
		method: 'post',
		data
	})
}
/**
 * @description 商家核销买多少送多少
 * @param {Object} data
 */
export function getConsumptionOrder(data) {
	return request({
		url: '/consumptionOrder/writeOffConsumptionOrder',
		method: 'post',
		data
	})
}
/**
 * @description 用户益联券使用记录
 * @param {Object} data
 */
export function getUserVoucherRecordList(data) {
	return request({
		url: '/voucherRecord/getUserVoucherRecordList',
		method: 'GET',
		data
	})
}
/**
 * @description 用户积分使用记录
 * @param {Object} data
 */
export function getUserIntegralRecordList(data) {
	return request({
		url: '/integralRecord/getUserIntegralRecordList',
		method: 'GET',
		data
	})
}
/**
 * @description 商家经营数据
 * @param {Object} data
 */
export function getBusinessData(data) {
	return request({
		url: '/business/getBusinessData',
		method: 'GET',
		data
	})
}
/**
 * @description 用户查我的推广
 * @param {Object} data
 */
export function getUserInviteRecord(data) {
	return request({
		url: '/inviteRecord/getUserInviteRecord',
		method: 'GET',
		data
	})
}
/**
 * @description 本月我的邀请人数
 * @param {Object} data
 */
export function inviteUserMonthCount(data) {
	return request({
		url: '/inviteRecord/inviteUserMonthCount',
		method: 'GET',
		data
	})
}

export function accessToBusinessData(data) {
	return request({
		url: '/business/accessToBusinessData',
		method: 'GET',
		data
	})
}
export function get0rderStatusCounts(data) {
	return request({
		url: '/order/OrderStatusCounts',
		method: 'GET',
		data
	})
}
export function getMessagesCount() {
	return request({
		url: '/messageBox/notReadMsgNum',
		method: 'GET',
	})
}
/**
 * @description 会员列表
 * @param {Object} data
 */
export function getUserInviteRecordList(data) {
	return request({
		url: '/inviteRecord/getUserInviteRecordList',
		method: 'GET',
		data
	})
}